﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Depo
{
    public partial class SyncWKst : XForm
    {
        public SyncWKst(string Field/*, string FieldKst*/)
        {
            InitializeComponent();

            string FieldKst = Field;
            gridView1.Init("GetDataFromKst", Field/*, FieldKst*/);
            gridView1.AddSummary();

            if (FieldKst.EndsWith("Id"))
                gridView1.Columns["Kst" + Field].ColumnEdit = gridView1.Columns[Field].ColumnEdit;
            
            gridView1.BestFitColumns();
        }

        private void SyncWKst_Load(object sender, EventArgs e)
        {
            
            btnKaydet.ItemClick += btnKaydet_ItemClick;
        }

        void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
                throw new NotImplementedException();
        }
    }
}